<?php

/*----------------------------------------------+
|  MaxForum					|
|  ===========================================	|
|  By Majd Almontaser				|
|  Released under the License GNU v3.0		|
|  http://www.Max4Dev.com			|
|  ===========================================	|
|  Ttmtt Team - http://www.liioiil.com		|
+-----------------------------------------------*/

if (!defined('MAX_ON')){
	echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";
	exit();
}

if ($can_edit_others_posts=='0'){

	max_redirect("index.php?page=error&error=5","error/5");

}
else{
$row=$_GET['entry'];
$row=escape_string($row);

$post=$_GET['post'];
$post=escape_string($post);

mysql_query("DELETE FROM {$db_prefix}posts_edit WHERE row ='$row'");

template_hook("pages/history.template.php", "form");

	max_redirect("index.php?page=findpost&post=$post","findpost/$post");

}
?>
